Scheduler for WinRT
Add Method (BaseCollection<T>)


Adds a new custom object to the collection. If the item already exists in the collection, its index is returned.
Syntax
'Declaration
 
Public Shadows Function Add( _
   ByVal item As T _
) As Integer
'Usage
 
Dim instance As BaseCollection(Of T)
Dim item As T
Dim value As Integer
 
value = instance.Add(item)
public new int Add( 
   T item
)

Parameters

item

Return Value

Returns the index of newly added custom object.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseCollection<T> Class
BaseCollection<T> Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.